package abg.core.domain.db;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 申请好友记录
 *
 * @author WYJ
 * @since 2023-10-12 16:10:36
 */
@Data
@Table(value = "chat_friend_apply")
public class ChatFriendApply {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.None)
    public String id;

    //    申请人ID
    private String applyUserId;

    //    	朋友ID
    private String friendUserId;

    //    '0'	申请状态；0=新的好友申请；1=已同意；2=已拒绝；默认为0
    private String applyStatus;

    //    	申请备注
    private String applyRemark;

    //    		申请时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applyTime;

    //    	处理消息
    private String processRemark;

    //    			处理时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime processTime;


    //参数：申请人名称
    @Column(ignore = true)
    private String applyUserName;

    //参数：申请人头像
    @Column(ignore = true)
    private String applyUserAvatar;

}
